<?php
include  __DIR__.'/common/common.php';//修改
$uid=(int)($_POST['uid']);
$title=addslashes($_POST['title']);
$content=addslashes($_POST['content']);
$name_id=(int)($_POST['name_id']);
$sql="UPDATE `article` SET
      title='$title',content='$content',name_id=$name_id
      WHERE uid=$uid";
$bool=mysqli_query($mysql,$sql);
if ($bool)
{
    echo 'ok';
}